home *** CD-ROM | disk | FTP | other *** search
- // smile.odl : type library source for OLE Custom Control project.
-
- // This file will be processed by the Make Type Library (mktyplib) tool to
- // produce the type library (smile.tlb) that will become a resource in
- // smile.ocx.
-
- #include <olectl.h>
-
- [ uuid(EDEC4488-C101-101B-AC9D-00AA0047D4FD), version(1.0),
- helpstring("Smile OLE Custom Control module") ]
- library SmileLib
- {
- importlib(STDOLE_TLB);
- importlib(STDTYPE_TLB);
-
- // Primary dispatch interface for CSmileCtrl
-
- [ uuid(EDEC4486-C101-101B-AC9D-00AA0047D4FD),
- helpstring("Dispatch interface for Smile Control") ]
- dispinterface _DSmile
- {
- properties:
- // NOTE - ClassWizard will maintain property information here.
- // Use extreme caution when editing this section.
- //{{AFX_ODL_PROP(CSmileCtrl)
- [id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
- [id(DISPID_CAPTION), bindable, requestedit] BSTR Caption;
- [id(DISPID_FONT), bindable] IFontDisp* Font;
- [id(DISPID_FORECOLOR), bindable, requestedit] OLE_COLOR ForeColor;
- [id(1)] boolean Sad;
- //}}AFX_ODL_PROP
-
- methods:
- // NOTE - ClassWizard will maintain method information here.
- // Use extreme caution when editing this section.
- //{{AFX_ODL_METHOD(CSmileCtrl)
- [id(DISPID_REFRESH)] void Refresh();
- [id(2)] void Beep(short uAlert);
- //}}AFX_ODL_METHOD
-
- [id(DISPID_ABOUTBOX)] void AboutBox();
- };
-
- // Event dispatch interface for CSmileCtrl
-
- [ uuid(EDEC4487-C101-101B-AC9D-00AA0047D4FD),
- helpstring("Event interface for Smile Control") ]
- dispinterface _DSmileEvents
- {
- properties:
- // Event interface has no properties
-
- methods:
- // NOTE - ClassWizard will maintain event information here.
- // Use extreme caution when editing this section.
- //{{AFX_ODL_EVENT(CSmileCtrl)
- [id(DISPID_CLICK)] void Click();
- [id(DISPID_KEYPRESS)] void KeyPress(short* KeyAscii);
- [id(1)] void Outside();
- [id(2)] void Inside(short X, short Y);
- //}}AFX_ODL_EVENT
- };
-
- // Class information for CSmileCtrl
-
- [ uuid(EDEC4485-C101-101B-AC9D-00AA0047D4FD),
- helpstring("Smile Control") ]
- coclass Smile
- {
- [default] dispinterface _DSmile;
- [default, source] dispinterface _DSmileEvents;
- };
-
-
- //{{AFX_APPEND_ODL}}
- };
-